<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" th:src="@{/webjars/jquery/3.3.1/jquery.js}"></script>
    <script type="text/javascript" th:src="@{/webjars/bootstrap/3.3.7/js/bootstrap.js}"></script>
    <link rel="stylesheet" th:href="@{/webjars/bootstrap/3.3.7/css/bootstrap.css}" >
    <link rel="stylesheet" th:href="@{css/list.css}">
</head>
<body>
<div id="courseList" class="container">
    <div class="row">
        <div class="col-sm-12 col-md-6 col-md-offset-3" th:each="list:${book}">
            <div class="thumbnail">
                <a href="#"> <img th:src="${list.avatar}" alt="course"></a>
                <div class="caption">
                    <h3>书名:[[${list.bookname}]] </h3>
                    <h3 class="course_price">价格:<span style="color: red">¥[[${list.price}]]</span></h3>
                    <h3>作者:[[${list.author}]]</h3>
                    <h3>出版社:[[${list.press}]]</h3>
                    <a type="button" th:href="@{/pay/}" class="btn btn-primary">购买</a>

                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>